package camel.corp.universalcopy;

import android.app.Activity;
import android.app.Application;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.content.res.Resources;
import android.os.Bundle;
import android.text.SpannableString;
import android.text.style.ForegroundColorSpan;
import android.text.style.RelativeSizeSpan;
import android.text.style.SuperscriptSpan;
import android.util.DisplayMetrics;
import android.view.WindowManager;
import com.camel.corp.universalcopy.MainApplication;
import com.google.firebase.analytics.FirebaseAnalytics;

public class ma {
  public static int a(Context paramContext, int paramInt) {
    double d = ((paramContext.getResources().getDisplayMetrics()).density * paramInt);
    Double.isNaN(d);
    return (int)(d + 0.5D);
  }
  
  public static int a(WindowManager paramWindowManager) {
    DisplayMetrics displayMetrics = new DisplayMetrics();
    paramWindowManager.getDefaultDisplay().getMetrics(displayMetrics);
    return displayMetrics.heightPixels;
  }
  
  public static CharSequence a(CharSequence paramCharSequence, int paramInt) {
    SpannableString spannableString = new SpannableString(paramCharSequence);
    spannableString.setSpan(new ForegroundColorSpan(paramInt), 0, spannableString.length(), 0);
    return spannableString;
  }
  
  public static CharSequence a(CharSequence paramCharSequence1, CharSequence paramCharSequence2, int paramInt) {
    StringBuilder stringBuilder = new StringBuilder();
    stringBuilder.append(paramCharSequence1);
    stringBuilder.append(" ");
    stringBuilder.append(paramCharSequence2);
    SpannableString spannableString = new SpannableString(stringBuilder.toString());
    int i = spannableString.length() - paramCharSequence2.length();
    int j = spannableString.length();
    spannableString.setSpan(new SuperscriptSpan(), i, j, 0);
    spannableString.setSpan(new RelativeSizeSpan(0.7F), i, j, 0);
    spannableString.setSpan(new ForegroundColorSpan(paramInt), i, j, 0);
    return spannableString;
  }
  
  public static String a(Context paramContext, String paramString1, String paramString2, String paramString3) {
    try {
      Resources resources = paramContext.getPackageManager().getResourcesForApplication(paramString2);
      return resources.getString(resources.getIdentifier(paramString1, "string", paramString2));
    } catch (Exception paramContext) {
      return paramString3;
    } 
  }
  
  public static void a(Activity paramActivity, String paramString) { ((MainApplication)paramActivity.getApplication()).a().setCurrentScreen(paramActivity, paramString, null); }
  
  public static void a(Application paramApplication, String paramString1, String paramString2) {
    FirebaseAnalytics firebaseAnalytics = ((MainApplication)paramApplication).a();
    Bundle bundle = new Bundle();
    bundle.putString("ACTION", paramString2);
    firebaseAnalytics.a(paramString1, bundle);
  }
  
  public static void a(Application paramApplication, String paramString1, String paramString2, String paramString3) {
    FirebaseAnalytics firebaseAnalytics = ((MainApplication)paramApplication).a();
    Bundle bundle = new Bundle();
    bundle.putString("ACTION", paramString2);
    bundle.putString("LABEL", paramString3);
    firebaseAnalytics.a(paramString1, bundle);
  }
  
  public static void a(Context paramContext, String paramString) {
    if (paramString == null)
      return; 
    ((ClipboardManager)paramContext.getSystemService("clipboard")).setPrimaryClip(ClipData.newPlainText(null, paramString));
  }
  
  public static int b(WindowManager paramWindowManager) {
    DisplayMetrics displayMetrics = new DisplayMetrics();
    paramWindowManager.getDefaultDisplay().getMetrics(displayMetrics);
    return displayMetrics.widthPixels;
  }
}


/* Location:              D:\Users\alienware\AndroidStudioProjects\Lazero\sample\sampler\classes-dex2jar\com\camel.jar!\camel\cor\\universalcopy\ma.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       1.0.7
 */